<?php
require("conexao.php");
session_start();
	if (!isset($_SESSION["txt_login"]) and !isset($_SESSION["txt_senha"]))
	{
print	"<script type= 'text/javascript'> location.href = 'index.php?link=5'</script>";
	}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Administrativo</title>
<link rel="stylesheet" type="text/css" href="resources/css/estilo.css" />
<!-- VALIDACAO -->
<script src="js/validacao.js" type="text/javascript"></script>
</head>

<body>
<div id="fundo">

<div id="tela">
<div id="cabecalho">
  <?php
    require("cabecalho.php");
	?>
</div>

<div id="menu">
<?php
    require("menu.php");
	?>	
</div>

<div id="link">
 <?php
    
	$link = $_GET["link"];
	
	
	$pag[1] = "home.php";
	$pag[2] = "lst_banco.php";
	$pag[3] = "lst_conta.php";
	$pag[4] = "frm_banco.php";
	$pag[5] = "frm_conta.php";
	$pag[6] = "lst_usuario.php";
	$pag[7] = "frm_usuario.php";
	$pag[8] = "op_usuario.php";
	$pag[9] = "logout.php";
	$pag[10] = "lst_contaspr.php";
	$pag[11] = "frm_contaspr.php";
	$pag[12] = "lst_classificacao.php";
	$pag[13] = "lst_configuracao.php";
	$pag[14] = "frm_configuracao.php";
	$pag[15] = "op_configuracao.php";
	$pag[16] = "lst_cliente.php";
	$pag[17] = "frm_cli.php";
	$pag[18] = "op_cli.php";
	$pag[19] = "frm_classificacao.php";
	$pag[20] = "lst_comprovantes.php";
	$pag[21] = "frm_comprovantes.php";
	
	if(!empty ($link))
	{
	if (file_exists($pag[$link]))
	{
	require($pag[$link]);
	}
	else
	{
	require("home.php");
	}
	}
	else 
	{
	require("home.php");
	}
?>
    </div>

<div id="rodape">

</div>

</div>
</div>



</body>
</html>
